package com.hbnu.service;

import com.hbnu.pojo.Order;
import com.hbnu.pojo.Refund;
import com.hbnu.pojo.Request;
import org.springframework.web.bind.annotation.RequestBody;

import java.math.BigDecimal;
import java.util.List;

public interface OrderService {

    BigDecimal getTolPrice(Request rq);

    Order previewOrder(Request rq);

    String createOrder(Request rq);

    Order getOrderDetail(Request rq);

    List<Order> getOrderList();

    List<Order> getOrderListByContent(Request rq);

    List<Order> getOrderListByUid(Request rq);

    List<Order> getOrderListByUidAndState(Request rq);

    List<Order> getOrderListByStateAndContent(Request rq);

    List<Refund> getRefundListByContent(Request rq);

    List<Refund> getRefundListByStateAndContent(Request rq);

    void updateOrderAddress(Request rq);

    void paySuccessful(Request rq);

    void reOrder(Request rq);

    void refund(Request rq);

    int deliverGood(Request rq);

    void refuteRefund(Request rq);

    void agreeRefund(Request rq);
    int getRefundAgree(Request rq);
}
